﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using mendian;
using Luna小店.DTO;
using DevExpress.XtraGrid.Demos.util;

namespace Luna小店.UC.款式尺寸
{
    public partial class Frm尺寸导入预览 : DevExpress.XtraEditors.XtraForm
    {
        private List<DTO尺寸> list;
        public Frm尺寸导入预览(List<DTO尺寸> list)
        {
            InitializeComponent();
            this.list = list;
            this.gridControl尺寸导入预览.DataSource = this.list;
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            RestCall.PostHttp(URL.接口url + "/size/saveSize", FunctionHelper.JsonSerialization(this.list));
            this.Close();
        }
    }
}